package foxesandrabbits.species;

import foxesandrabbits.field.Field;
import foxesandrabbits.field.Location;

/**
 * A simple model of a fox.
 * Foxes age, move, eat rabbits, and die.
 * 
 * @author Baptiste Viale
 */
public class Fox extends Killer
{
	private static int FOX_FOOD_VALUE=28;
	private static double FOX_BREEDING_PROBABILITY = 0.28;
	
    /**
     * Create a fox. A fox can be created as a new born (age zero
     * and not hungry) or with a random age and food level.
     * 
     * @param randomAge If true, the fox will have random age and hunger level.
     * @param field The field currently occupied.
     * @param location The location within the field.
     */
    public Fox(boolean randomAge, Field field, Location location)
    {
        super(randomAge, field, location, FOX_FOOD_VALUE,FOX_BREEDING_PROBABILITY);   
        preys = new Class[] { Rabbit.class };
    }
}
